var app = getApp();

Component({
    properties: {
        tipStrLine1: {
            type: String,
            default: "test query string"
        },

        tipStrLine2: {
            type: String,
            default: ""
        },

        callbackParam: {
            type: String
        }
    },

    data: {
        baseUrl: app.globalData.baseUrl,
        isIos: false
    },

    attached() {
        let info = jd.getSystemInfoSync();
        this.setData({
            isIos: info.platform == "ios"
        })
    },

    methods: {
        onConfirmClick() {
            this.triggerEvent("onQueryConfirm", this.data.callbackParam);
        },

        onCancelClick() {
            this.triggerEvent("onQueryCancel", this.data.callbackParam);
        }
    },
})